package com.zhang.yygh.user.client;

import com.atguigu.yygh.model.user.Patient;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user")
public interface UserFeignClient {
    //获取就诊人
    @GetMapping("/api/userinfo/patient/inner/get/{id}")
    public Patient getPatientById(
            @ApiParam(name = "id", value = "就诊人id", required = true)
            @PathVariable("id") Long id);
}